package be.nepherte.movmanager.client.ui.components;

import java.util.List;

import be.nepherte.movmanager.domain.Movie;

/**
 * Implementors of this interface contain multiple movies.
 * 
 * <p>
 * Copyright © 2010 Bart Verhoeven
 * </p>
 * 
 * <p>
 * This file is part of MovManger.
 * </p>
 * 
 * <p>
 * MovManger is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * </p>
 * 
 * <p>
 * MovManger is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 * </p>
 * 
 * <p>
 * You should have received a copy of the GNU General Public License along with
 * MovManger. If not, see http://www.gnu.org/licenses/.
 * </p>
 * 
 * @author	Bart Verhoeven
 * @version	0.1
 */
public interface HasMovies {
	
	/**
	 * Sets all movies and displays them. All previous movies are removed. When
	 * <tt>movies</tt> is null, no movies are shown.
	 * 
	 * @param	movies
	 *          list of new movies
	 */
	public void setMovies(List<Movie> movies);
	
	/**
	 * Retrieves all movies.
	 * 
	 * @return	list with all movies
	 */
	public List<Movie> getMovies();

}
